package com.example.shop.model;

import lombok.Data;
import tk.mybatis.mapper.annotation.KeySql;

import javax.persistence.Column;
import javax.persistence.Id;
import javax.persistence.Table;

@Data
@Table(name = "commodity")
public class Commodity {
    @Id
    @KeySql(useGeneratedKeys = true)
    private Integer id;
    @Column(name = "cId")
    private Integer cId;
    private String name;
    private String pic;
    private Double price;
    private String introduce;
}
